<?php
abstract class AbsApi {
	protected $oauth;
	protected $client;
	
	//获取oauth对象
	abstract public function setOauth($oauth_request_token = '', $oauth_request_secret = '');
	
	//获取未授权的token
	abstract public function getRequestToken();
	
	//获取跳转的授权url
	abstract public function getAuthorizeURL($oauth_request_token, $sign_in = false, $callback = '');
	
	//获取access token
	abstract public function getAccessToken($oauth_verifier);
	
	//获取调用api的对象
	abstract public function setClient($oauth_access_token, $oauth_access_secret);
	
	//调用api
	abstract public function api();
	
	//
	abstract public function getLogoutUrl();
}
?>